﻿using System;
using System.Collections.Generic;

namespace LVYAN.Model
{

    public class RoomTask
    {
        /// <summary>
        /// 群名称
        /// </summary>
        public string RoomName { get; set; }
        /// <summary>
        /// 群要发送的消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// MessageType 文本/链接时Message 必填 
        /// MessageType 其他附件时 RoomTaskFile  必填 
        /// </summary>
        public string MessageType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool MessageTypeFile { get; set; }
        /// <summary>
        /// 发送的时间
        /// </summary>
        public DateTime SendDate { get; set; }
        /// <summary>
        /// 任务ID
        /// </summary>
        public string TaskId { get; set; }
        /// <summary>
        /// 消息ID
        /// </summary>
        public string HistoryId { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public List<RoomTaskFile> List { get; set; } = new  List<RoomTaskFile>{ };
    }
    public class RoomTaskFile
    {
        public string Url { get; set; }
        public string Name { get; set; }

    }
}
